Semantic Tags In HTML

Semantic And Non-Semantic Tags

HTML5 introduced a range of semantic tags that provide meaning to the structure of web content. This blog will guide you through the importance and usage of these tags.

What are Semantic Tags?

Semantic tags add meaning to your HTML. They tell both the browser and the developer what kind of content is being presented. Here are some of the key semantic tags you must know about:

  1. <header>: Used to represent the top section of a web page, often containing headings, logos, and navigation.
  2. <nav>: Signifies a navigation menu on a web page.
  3. <article>: Indicates a self-contained piece of content, such as a blog post or news article.
  4. <section>: Represents a thematic grouping of content on a web page.
  5. <aside>: Typically used for sidebars or content that is tangentially related to the main content.
  6. <footer>: Represents the footer of a web page, usually containing copyright information and contact details.
  7. <figure> And <figcaption>: Used for embedding images, diagrams, or charts, along with a caption.
  8. <main>: Signifies the main content area of a web page.
  9. <time>: Used to represent time-related information, like dates and times.

More On Semantic Tags

Semantic Tags Are Really Appreciated For SEO Purpose

They enhance SEO, improve accessibility, and make your code easier to read and maintain.

It Maintains Your Sites Structure And Lets Search Engines To Find Out Which Content At Your Site Is Of What Type And Rank Your Website.

Semantic Tags Don't Style Your Page Visually Because It Is Used To Maintain Your Site For SEO Purpose You Must Style Your Page Via CSS